"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[96284],{96284:function(e,t,n){n.d(t,{Z:function(){return E}}),n(66992),n(33948),n(74916),n(4723),n(88674);var a=n(67294),o=n(26793),m=n(69580),i=n(90502),l=n(42077),r=n(39704),s=n(73887),c=n(11602),p=(n(23123),n(26699),n(32023),n(94184)),g=n.n(p),h=n(49988),d=n.p+"static/image/bnpl-img.d50b5a7b4d5d7c0cd31766120ff8aa84.png",u=n(3516),b=n(34474),f=n(54294),y=e=>{var{t:t}=(0,o.$)(),{imgArray:n}=e;return a.createElement(a.Fragment,null,a.createElement("div",{className:"img-container","data-v-640b6743":""},n&&n.length?n.map((e=>a.createElement("div",{className:"img-flex-container","data-v-640b6743":""},a.createElement("img",{src:e.img,alt:"",width:60,height:60,"data-v-640b6743":""}),a.createElement("span",{className:"img-flex-title","data-v-640b6743":""},t(e.title)),a.createElement("span",{className:"img-flex-content","data-v-640b6743":""},t(e.content))))):null))},v=e=>{var t,n,{t:m}=(0,o.$)(),{isShow:i,type:l,onHideContainer:r,bnplData:s}=e,c=(0,a.useMemo)((()=>{if(null==s||!s.home)return[];var e=[{img:"https://img1.shopcider.com/hermes/posting/1665631405000-phpxzc.png",title:s.home.imgInfo1,content:s.home.imgContent21},{img:"https://img1.shopcider.com/hermes/posting/1665578067000-tpbptr.png",title:s.home.imgInfo2,content:s.home.imgContent22},{img:"https://img1.shopcider.com/hermes/posting/1665630949000-ptqamt.png",title:s.home.imgInfo3,content:s.home.imgContent23},{img:"https://img1.shopcider.com/hermes/posting/1665578067000-fk3dsj.png",title:s.home.imgInfo4,content:s.home.imgContent24}],t=[{img:"https://img1.shopcider.com/hermes/posting/1665631216000-mwsnt2.png",title:s.home.imgInfo1,content:s.home.imgContent21},{img:"https://img1.shopcider.com/hermes/posting/1665578068000-pegdbn.png",title:s.home.imgInfo2,content:s.home.imgContent31},{img:"https://img1.shopcider.com/hermes/posting/1665578067000-fk3dsj.png",title:s.home.imgInfo3,content:s.home.imgContent32}],n=[{img:"https://img1.shopcider.com/hermes/posting/1665631216000-mwsnt2.png",title:s.home.imgInfo1,content:s.home.imgContent21},{img:"https://img1.shopcider.com/hermes/posting/1665578068000-pegdbn.png",title:s.home.imgInfo2,content:s.home.nextMonth},{img:"https://img1.shopcider.com/hermes/posting/1665578067000-fk3dsj.png",title:s.home.imgInfo4,content:s.home.imgContent3}],a=[{img:"https://img1.shopcider.com/hermes/posting/1665631405000-phpxzc.png",title:s.home.imgInfo1,content:s.home.imgContent1},{img:"https://img1.shopcider.com/hermes/posting/1665578067000-tpbptr.png",title:s.home.imgInfo2,content:s.home.imgContent2},{img:"https://img1.shopcider.com/hermes/posting/1665630949000-ptqamt.png",title:s.home.imgInfo3,content:s.home.imgContent3},{img:"https://img1.shopcider.com/hermes/posting/1665578067000-fk3dsj.png",title:s.home.imgInfo4,content:s.home.imgContent}],o=[{img:"https://img1.shopcider.com/hermes/posting/1665631216000-mwsnt2.png",title:s.home.scalapayimgInfo1,content:s.home.scalapayimgContent21},{img:"https://img1.shopcider.com/hermes/posting/1665578068000-pegdbn.png",title:s.home.scalapayimgInfo2,content:s.home.scalapayimgContent31},{img:"https://img1.shopcider.com/hermes/posting/1665578067000-fk3dsj.png",title:s.home.scalapayimgInfo3,content:s.home.scalapayimgContent32}];return[{name:"KLARNA_US",imageLogo:e,logo:"https://img.shopcider.com/hermes/posting/1665484354000-rrfdmb.png",mainTitle:"Klarna",detailtitle:s.home.detailtitle,installmentNum:4,detailSubTitle:s.home.detailSubTitle,liList:[{number:"①",key:s.home.detailli1,I18NComponent:!0,width:28.8},{number:"②",key:s.home.detailli11,I18NComponent:!1},{number:"③",key:s.home.detailli12,I18NComponent:!1},{number:"④",key:s.home.detailli13,I18NComponent:!1}],bottomContent:s.home.detailBottom1},{name:"KLARNA_EU",imageLogo:t,logo:"https://img.shopcider.com/hermes/posting/1665484354000-rrfdmb.png",mainTitle:"Klarna",installmentNum:3,detailtitle:s.home.detailtitle,detailSubTitle:s.home.detailSubTitle,liList:[{number:"①",key:s.home.detailli1,I18NComponent:!0,width:28.8},{number:"②",key:s.home.detailli11,I18NComponent:!1},{number:"③",key:s.home.detailli12,I18NComponent:!1},{number:"④",key:s.home.detailli13,I18NComponent:!1}],bottomContent:s.home.detailBottom2},{name:"KLARNA_EU_30",imageLogo:[],logo:"https://img.shopcider.com/hermes/posting/1665484354000-rrfdmb.png",mainTitle:"Klarna",installmentNum:null,detailtitle:s.home.detailtitle3,detailSubTitle:"",liList:[{number:"①",key:s.home.detailli1,I18NComponent:!0,width:28.8},{number:"②",key:s.home.detailli11,I18NComponent:!1},{number:"③",key:s.home.detailli12,I18NComponent:!1},{number:"④",key:s.home.detailli13,I18NComponent:!1}],bottomContent:null},{name:"TAMARA",imageLogo:n,logo:"https://img.shopcider.com/hermes/posting/1671704136000-dqe8xj.png",mainTitle:"Tamara",installmentNum:4,detailtitle:s.home.detailtitle,detailSubTitle:s.home.detailTamaraTitle,liList:[{number:"①",key:s.home.tamaraDetail,I18NComponent:!1},{number:"②",key:s.home.detailli1,I18NComponent:!0,width:16},{number:"③",key:s.home.tamaraDetail3,I18NComponent:!1},{number:"④",key:s.home.tamaraDetail4,I18NComponent:!1}],bottomContent:s.home.tamaraDetailBottom},{name:"TABBY",imageLogo:a,logo:"https://img.shopcider.com/hermes/posting/1662457708000-xymgtb.png",mainTitle:"Tabby",installmentNum:4,detailtitle:s.home.detailtitle,detailSubTitle:s.home.detailSubTitle,liList:[{number:"①",key:s.home.detailli1,I18NComponent:!0,width:42.67},{number:"②",key:s.home.detailli2,I18NComponent:!1},{number:"③",key:s.home.detailli3,I18NComponent:!1},{number:"④",key:s.home.detailli4,I18NComponent:!1}],bottomContent:s.home.detailBottom,bnplImg:!0},{name:"AFTERPAY",imageLogo:e,logo:"https://img.shopcider.com/hermes/posting/1671698194000-2qppjs.png",installmentNum:4,mainTitle:"Afterpay",detailtitle:s.home.detailtitle,detailSubTitle:s.home.detailSubTitle,liList:[{number:"①",key:s.home.afterPay1,I18NComponent:!0,width:42.67},{number:"②",key:s.home.afterPay2,I18NComponent:!1},{number:"③",key:s.home.afterPay3,I18NComponent:!1}],bottomContent:s.home.afterPayBottom},{name:"CLEARPAY",imageLogo:e,logo:"https://img.shopcider.com/hermes/posting/1681274826000-tqmzzd.png",installmentNum:4,mainTitle:"Clearpay",detailtitle:s.home.detailtitle,detailSubTitle:s.home.detailSubTitle,liList:[{number:"①",key:s.home.afterPay1,I18NComponent:!0,width:42.67},{number:"②",key:s.home.clearPay2,I18NComponent:!1},{number:"③",key:s.home.clearPay3,I18NComponent:!1}],bottomContent:s.home.clearPayBottom},{name:"SCALA_PAY",isIncludeMatch:!0,imageLogo:o,logo:"https://img.shopcider.com/hermes/posting/1718864900000-qzknna.png",installmentNum:null,mainTitle:s.home.scalapay,detailtitle:s.home.scalaDetailTitle,detailSubTitle:s.home.scalaDetailSubTitle,liList:[{number:"①",key:s.home.scalaPay1,I18NComponent:!0,width:42.67},{number:"②",key:s.home.scalaPay2,I18NComponent:!1},{number:"③",key:s.home.scalaPay3,I18NComponent:!1}],bottomContent:s.home.scalaPayBottom}]}),[s.home]),[p,v]=(0,a.useState)([]),[C,N]=(0,a.useState)("");(0,a.useEffect)((()=>{var e=l.split(",").map((e=>{var t=c.find((t=>{var n=t.isIncludeMatch&&e.includes(t.name);return t.name===e||n}))||{};return{type:null==t?void 0:t.name,name:null==t?void 0:t.mainTitle}}))||[];v(e),N(null==e?void 0:e[0].type)}),[c,l]);var I=(0,a.useMemo)((()=>c.find((e=>(null==e?void 0:e.name)===C))||{}),[c,C]),E=(0,a.useMemo)((()=>"KLARNA_EU_30"===(null==I?void 0:I.name)),[null==I?void 0:I.name]),T=a.createElement(a.Fragment,null,a.createElement("div",{"data-v-81aa1418":""},a.createElement("span",{className:"type","data-v-81aa1418":""},I.bottomContent),a.createElement("div",{"data-v-81aa1418":""},a.createElement("img",{src:d,alt:"",width:114,"data-v-81aa1418":""}))));return a.createElement(a.Fragment,null,a.createElement(b.Z,{visible:i,title:null==s||null===(t=s.home)||void 0===t?void 0:t.modelTitle,width:640,appendToBody:!0,onCancel:()=>{r()},noPadding:!0,"data-v-81aa1418":""},a.createElement("div",{className:"bnpl-popup-container","data-v-81aa1418":""},a.createElement("div",{className:"title-header","data-v-81aa1418":""},p.map((e=>a.createElement("span",{onClick:()=>N(e.type),className:g()("type-header",{select:C===e.type}),"data-v-81aa1418":""},e.name)))),a.createElement("img",{src:I.logo,alt:"",className:"img",height:24,"data-v-81aa1418":""}),a.createElement("div",{className:g()("type",{"klarna-eu-30-margin":E,"default-margin":!E}),"data-v-81aa1418":""},a.createElement(a.Fragment,null,!["KLARNA_EU_30"].includes(I.name)&&I.installmentNum," ",I.detailtitle)),a.createElement("div",{className:"gray-text","data-v-81aa1418":""},I.detailSubTitle),a.createElement(y,{imgArray:I.imageLogo,"data-v-81aa1418":""}),a.createElement("div",{"data-v-81aa1418":""},a.createElement("div",{className:"type detail-title2","data-v-81aa1418":""},s.home.detailTitle2),a.createElement("ul",{className:"ul-container","data-v-81aa1418":""},null==I||null===(n=I.liList)||void 0===n?void 0:n.map(((e,t)=>a.createElement("li",{key:t,"data-v-81aa1418":""},a.createElement("span",{className:"span-number","data-v-81aa1418":""},e.number),e.I18NComponent?a.createElement(h.CF,{i18nValue:e.key,components:{logo:a.createElement(u.Z,{imgUrl:I.logo,alt:"",width:e.width,height:16,imgStyle:{margin:"0 4px"},"data-v-81aa1418":""})},"data-v-81aa1418":""}):a.createElement(a.Fragment,null,e.key)))))),(null==I?void 0:I.bottomContent)&&a.createElement("div",{className:"content-bottom","data-v-81aa1418":""},null!=I&&I.bnplImg?T:a.createElement(f.Z,{htmlTag:"span",dangerouslySetInnerHTML:{__html:null==I?void 0:I.bottomContent},"data-v-81aa1418":""})))))};function C(e,t,n,a,o,m,i){try{var l=e[m](i),r=l.value}catch(e){return void n(e)}l.done?t(r):Promise.resolve(r).then(a,o)}function N(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var m=e.apply(t,n);function i(e){C(m,a,o,i,l,"next",e)}function l(e){C(m,a,o,i,l,"throw",e)}i(void 0)}))}}var I=!0,E=e=>{var t,{logo:n,type:p,installmentNum:g,logoList:h,learnMoreUrl:d,content:u}=e,{t:b}=(0,o.$)(),f=(0,r.I0)(),[y,C]=(0,a.useState)(!1),[E,T]=(0,a.useState)({home:{}}),{internationalStatic:_}=(0,r.v9)(c.Z);(0,a.useEffect)((()=>{var{bnpl:e}=_;null!=e&&e.home&&!I&&T(e)}),[_]);var S=(0,a.useCallback)(N((function*(){var e=null===s.Z||void 0===s.Z?void 0:s.Z.getState();yield f(l.Z.SET_INTERNATIONAL_STATIC(e.user.local,i.t.BNPL_HOME)),I=!1})),[f]);(0,a.useEffect)((()=>{I&&S()}),[]);var k=(0,a.useMemo)((()=>!!d),[d]),L=(0,a.useCallback)((()=>{k&&C(!0)}),[k]),A=(0,a.useMemo)((()=>{var e;if(!d)return p.toUpperCase();var t=d.match(/(.*?\/bnpl\/)(.*)/);return(null==t||null===(e=t[2])||void 0===e?void 0:e.toUpperCase())||p.toUpperCase()}),[d,p]);return a.createElement("span",{className:"bnpl-container","data-v-c9f40287":""},a.createElement("span",{className:"bnpl-click-container",onClick:L,"data-v-c9f40287":""},a.createElement("span",{className:"text","data-v-c9f40287":""},u),null==h||null===(t=h.filter((e=>e)))||void 0===t?void 0:t.map((e=>{var t;return a.createElement("span",{className:"img","data-v-c9f40287":""},a.createElement(m.Ee,{imgUrl:e,fit:"fill",alt:null==E||null===(t=E.home)||void 0===t?void 0:t.mainTitle,height:16,width:30,"data-v-c9f40287":""}))})),k&&a.createElement(m.le,{iconClass:m.my.ICON_HELP,width:12,height:12,style:{verticalAlign:"middle",margin:"-1px 4px 0 0"},"data-v-c9f40287":""})),a.createElement(v,{bnplData:E,isShow:y,onHideContainer:()=>{C(!1)},type:A,logo:n,installmentNum:g,"data-v-c9f40287":""}))}},54294:function(e,t,n){n.d(t,{Z:function(){return h}}),n(39714),n(54747);var a=n(67294),o=n(8723),m=n(39704),i=n(22222),l=n(95568),r=(0,i.zB)({xssFilterCfg:(0,l.Qq)()}),s=["htmlTag","__html","dangerouslySetInnerHTML"];function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function p(e){for(var t=1;t{var{htmlTag:n,__html:i,dangerouslySetInnerHTML:l}=e,c=function(e,t){if(null==e)return{};var n,a,o=function(e,t){if(null==e)return{};var n,a,o={},m=Object.keys(e);for(a=0;a=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,s),{xssFilterCfg:g}=(0,m.v9)(r),h=(0,a.useMemo)((()=>{var e;return e=null!=l&&l.__html?null==l?void 0:l.__html:i||"",g?o.Z.escapeXssHtmlTag(e,{onIgnoreTagAttr:function(e,t,n,a){return"".concat(t,'="').concat(n.toString(),'"')}}):e}),[i,null==l?void 0:l.__html,g]),d=(0,a.useRef)();return(0,a.useImperativeHandle)(t,(()=>({element:d.current}))),a.createElement(a.Fragment,null,a.createElement(n,p(p({},c),{},{dangerouslySetInnerHTML:{__html:h},ref:d})))}))},90502:function(e,t,n){var a;n.d(t,{t:function(){return a}}),function(e){e.ACCOUNT_SUPPORT="account.support",e.POLICY_COOKIE="policy.cookie",e.SELF_CARE_PAGE="selfCare.page",e.POLICY_TERMS="policy.terms",e.POLICY_SIZE_GUIDE="policy.sizeGuide",e.ABOUT_US="aboutV4.us,aboutV3.us,aboutV2.us,policy.recycle,policy.fenco,policy.yu",e.SUSTAINABILITY="aboutV3.us,aboutV2.us,policy.recycle,policy.fenco,policy.yu",e.BNPL_HOME="bnpl.home",e.GIFT_CARD_STORE="giftCard.store",e.REFUND_DETAIL="refund.detail,refund.refund",e.SUPPORT_FAQ="support.faq"}(a||(a={}))}}]);